package com.rs.common.entity;

import com.rs.common.utils.constant.Constant;

/**
 * 分页查询所需参数
 * @author hedonglin
 * @company 睿思科技
 * @email 1048791780@qq.com
 * @date 2017年12月20
 */
public class PageParams {
    //页码,这里设置为1，mybatis-plus会自动给我们减一
    private Integer pageNum = 1;

    //每页显示的记录数
    private Integer pageSize = 10;

    //关键字
    private String key;

    //状态  0正常 1禁用  -1删除
    private Integer status;

    //流程状态
    private Integer review;

    //排序字段
    private String sortKey;

    //不查询删除状态的数据，静态常量，不可更改
    private static final Integer delStatus = Constant.BaseStatus.DELETE.getValue();

    //排序方式,默认降序排序
    private boolean asc = false;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getReview() {
        return review;
    }

    public void setReview(Integer review) {
        this.review = review;
    }

    public String getSortKey() {
        return sortKey;
    }

    public void setSortKey(String sortKey) {
        this.sortKey = sortKey;
    }

    public boolean isAsc() {
        return asc;
    }

    public void setAsc(boolean asc) {
        this.asc = asc;
    }

    public static Integer getDelStatus() {
        return delStatus;
    }
}
